package com.jdjw.modules.buscommentjcllzzfw.controller;


import com.jdjw.common.ResponseResult;
import com.jdjw.modules.buscommentjcllzzfw.entity.BusCommentJcllzzfw;
import com.jdjw.modules.buscommentjcllzzfw.entity.QueryBusCommentJcllzzfw;
import com.jdjw.modules.buscommentjcllzzfw.service.BusCommentJcllzzfwService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 检察联络站评论数据-对接建达-存放建达检察联络站需要转至政法委的数据 前端控制器
 * </p>
 *
 * @author fq
 * @since 2021-06-01
 */
@RestController
@RequestMapping("/buscommentjcllzzfw")
public class BusCommentJcllzzfwController {

    @Resource
    BusCommentJcllzzfwService busCommentJcllzzfwService;

    @ApiOperation("检查联络站转政法委数据推送")
    @PostMapping("addInfo")
    public ResponseResult addInfo(QueryBusCommentJcllzzfw queryBusCommentJcllzzfw) {
        BusCommentJcllzzfw busCommentJcllzzfw = new BusCommentJcllzzfw();
        BeanUtils.copyProperties(queryBusCommentJcllzzfw, busCommentJcllzzfw);
        return busCommentJcllzzfwService.addEventInfo(busCommentJcllzzfw);
    }

}

